package com.gitlab.bootren.data.core.query;


/**
 * 空条件
 * @author tengda
 *
 */
class EmptyCondition extends AbstractCondition {

	@Override
	public String ql() {
 		return "";
	}

	@Override
	public String ql(String aliasName) {
 		return "";
	}
	
	
	@Override
	public ICondition and(ICondition conditionModel) {
 		if(conditionModel==null){
 			return this;
 		}else{
 			return conditionModel ;
 		}
	}
	
	@Override
	public ICondition or(ICondition conditionModel) {
		if(conditionModel==null){
 			return this;
 		}else{
 			return conditionModel ;
 		}
	}
	
	
	
	@Override
	public String toString() {
		return "EmptyCondition";
	}
	
	

}
